import http from '@/api';

// 前端配置页面
export const pagePage = params => http.post(`/page/page`, params);
export const pageSave = params => http.post(`/page/save`, params);
export const pageUpdate = params => http.post(`/page/update`, params);
export const pageDelete = id => http.get(`/page/delete/${id}`);

// 前端配置页面明细
export const pageItemList = params => http.post(`/pageItem/list`, params);
export const pageItemSave = params => http.post(`/pageItem/save`, params);
export const pageItemUpdate = params => http.post(`/pageItem/update`, params);
export const pageItemDelete = id => http.get(`/pageItem/delete/${id}`);

export const pageItemFindPageItem = id => http.get(`/pageItem/findPageItem/${id}`);

// json格式配置
export const pageJsonConfigPage = params => http.post(`/pageJsonConfig/page`, params);
export const pageJsonConfigList = params => http.post(`/pageJsonConfig/list`, params);

export const pageJsonConfigSave = params => http.post(`/pageJsonConfig/save`, params);
export const pageJsonConfigUpdate = params => http.post(`/pageJsonConfig/update`, params);
export const pageJsonConfigDelete = id => http.get(`/pageJsonConfig/delete/${id}`);
export const pageJsonConfigFind = id => http.get(`/pageJsonConfig/find/${id}`);

export const webMenuListTree = params => http.post(`/webMenu/listTree`, params);
